const expressJwt = require("express-jwt");
const { secretKey } = require('./salt');
const jwtAuth = expressJwt({
    secret: secretKey,
    credentialsRequired: false // false：不校验
}).unless({
    path: ["/admins/login", "/admins/reg", "/favicon.ico"]
});
module.exports = jwtAuth;